# def isleapyear(i):
#     if i%400==0:
#         return True
#     elif i%4==0 and i%100!=0:
#         return True
#     else:
#         return False
# year=[1900,1980,1999,2000,2010]
# for i in year:
#     ret=isleapyear(i)
#     if ret:
#         print(f'公元{i}年是闰年')
#     else:
#         print(f'公元{i}年是平年')

from multiprocessing import Process,Queue
def isleapyear1(i,q):
    if i%400==0:
        q.put(True)
    elif i%4==0 and i%100!=0:
        q.put(True)
    else:
        q.put(False)
if __name__ == '__main__':
    q=Queue()
    year = [1900, 1980, 1999, 2000, 2010]
    for i in year:
        Process(target=isleapyear1,args=(i,q)).start()
    for i in year:
        if q.get():
            print(f'公元{i}年是闰年')
        else:
            print(f'公元{i}年是平年')
print(1100/4)
